package com.link.base.base.codereview.dao.mybatis.mapper;


import com.link.base.base.codereview.model.SysCodeReview;
import com.link.core.basic.dao.mapper.BasicMapper;

import java.util.List;

/**
 * 代码审核管理-专用于代码审核功能
 *
 * @author 谢鑫
 * @date 2019/09/25 09:59
 */
public interface SysCodeReviewMapper extends BasicMapper<SysCodeReview> {

    /**
     * 更新当前代码记录状态和审核信息
     *
     * @param sysCodeReview
     * @return
     * @throws Exception
     */
    public Integer updateStatusAndApprovalInfo(SysCodeReview sysCodeReview) throws Exception;

    /**
     * 通过全表的去重查询查询所有项目
     * @param sysCodeReview
     * @return
     * @throws Exception
     */
    public List<SysCodeReview> queryProj(SysCodeReview sysCodeReview) throws Exception;
}
